package com.lyh.system.domain.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lyh.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户预约报单信息对象 lyh_member_purchase_info
 *
 * @author ruoyi
 * @date 2023-04-27
 */
@ApiModel(value = "预约报量管理", description = "预约报量管理")
@Data
public class MemberPurchaseInfoResp implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(example = "报单号")
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "报单号")
    private Long id;

    /** 用户id */
    @ApiModelProperty(example = "人员id")
    private Long userId;

    /** 消耗资产通证数量 */
    @ApiModelProperty(example = "消耗资产通证数量")
    private BigDecimal assetEvidenceNum;

    /** 消耗消费券数量 */
    @ApiModelProperty(example = "消耗消费券数量")
    private Long consumerCouponNum;




    @ApiModelProperty(example = "用户id")
    @Excel(name = "用户id")

    private String memberId;

    @Excel(name = "姓名")
    private String nickName;

    @Excel(name = "账号")
    private String userName;

    @ApiModelProperty(example = "地区")
    private String area;


    @Excel(name = "报单金额")
    @ApiModelProperty(example = "报单金额")
    private BigDecimal price;

    @ApiModelProperty(example = "场次")
    private Integer timeInterval;

    @ApiModelProperty(example = "场次名称")
    @Excel(name = "场次名称")
    private String timeIntervalName;

    @ApiModelProperty(example = "状态")
    @Excel(name = "状态")
    private String statusName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(example = "预约时间")
    @Excel(name = "预约时间")
    private String createTime;

    private Integer status;





    private String phonenumber;

    @ApiModelProperty(example = "预估收益")
    @Excel(name = "预估收益")
    private BigDecimal maybeIncome;

    @ApiModelProperty(example = "预计到账时间")
    @Excel(name = "预计到账时间")
    private String intervalNextTime;

    @ApiModelProperty(example = "审核时间")
    @Excel(name = "审核时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;
}
